{include file="public/common" /}

<form class="layui-form" id="order_form">
    <div class="layui-form-item">

        <div class="layui-inline">
            <div class="layui-input-inline">
                <input type="text" name="search_" value ="<?php echo isset($param['search_'])?$param['search_']:''?>" autocomplete="off" class="layui-input" placeholder="搜索社区名称">
            </div>
        </div>

        <div class="layui-inline">
            <button type="submit" class="layui-btn" name="" >筛选</button>
            <!--<a class="layui-btn" name="export" value="1" onclick="export_data()">导出数据</a>-->
        </div>
    </div>
</form>

<div>
    <table class="layui-table" data-model="12">
        <colgroup>
            <col width="30%">
            <col width="30%">
        </colgroup>
        <thead>
        <tr>
            <th>社区名称</th>
            <th>社区地址</th>
        </tr>
        </thead>
        <tbody>
        {if condition="!empty($data)"}
        {volist name="data" id="item"}
        <tr>
            <td>{$item.community_name}</td>
            <td>{$item.community_address}</td>
        </tr>
        {/volist}
        {/if}
        <tr>
            <td colspan="2" style="text-align: left;">
                <button class="layui-btn area_operation" onclick="model('/addons/execute/seller-community-seller_community_view')">社区管理</button>
            </td>
        </tr>
        </tbody>
    </table>
    {$data->render()}
</div>

<script>
    function del_(id) {
        if (confirm("确认删除id=" + id + "的商品")) {
            $.get(
                    '{:addon_url("seller://goods/edit")}?goods_id=' + id + '&del=' + id,
                    function () {
                        alert("删除成功");
                    }
            )
        }
    }

</script>